{% extends "base.html" %}

{% block title %}Login - Volunteer Platform{% endblock %}

{% block content %}
<div class="container mt-4">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card">
                <div class="card-body">
                    <h2 class="card-title text-center mb-4">User Login</h2>
                    
                    <form method="POST" action="{{ url_for('login') }}">
                        <div class="mb-3">
                            <label for="email" class="form-label">Email</label>
                            <input type="email" class="form-control" id="email" name="email" required>
                        </div>
                        
                        <div class="mb-3">
                            <label for="password" class="form-label">Password</label>
                            <input type="password" class="form-control" id="password" name="password" required>
                        </div>
                        
                        <div class="d-grid gap-2">
                            <button type="submit" class="btn btn-primary">Login</button>
                            <a href="{{ url_for('register') }}" class="btn btn-outline-secondary">Create New Account</a>
                        </div>
                    </form>

                    <div class="text-center mt-3">
                        <small class="text-muted">
                            Administrators click <a href="{{ url_for('admin_login') }}">here</a> to login
                        </small>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %} 